package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.enums.ContractTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  排班计划
 * </p>
 *
 * @author 王巨壁
 * @since 2019-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Plan对象", description = "")
public class Plan implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "任务描述")
    private String text;

    @TableField("deptId")
    private Long deptId;

    @TableField("deptName")
    private String deptName;

    @TableField("orderId")
    private Long orderId;

    @ApiModelProperty(value = "订单编号")
    @TableField("orderCode")
    private String orderCode;

    @ApiModelProperty(value = "订单模式1.生产订单2修磨订单3外包订单4混合订单具体参考constants表")
    @TableField("orderMode")
    private Integer orderMode;

    @ApiModelProperty(value = "合同id")
    @TableField("contractId")
    private Long contractId;

    @ApiModelProperty(value = "合同批号")
    @TableField("contractCode")
    private String contractCode;

    @ApiModelProperty(value = "合同类型1普通2加急")
    @TableField("contractType")
    private ContractTypeEnum contractType;

    @ApiModelProperty(value = "下单人id对应userid")
    @TableField("underOrderId")
    private Long underOrderId;

    @ApiModelProperty(value = "产品id")
    @TableField("itemId")
    private Long itemId;

    @ApiModelProperty(value = "编码")
    @TableField("itemCode")
    private String itemCode;

    @ApiModelProperty(value = "产品名称")
    @TableField("itemName")
    private String itemName;

    @ApiModelProperty(value = "产品描述")
    @TableField("itemInfo")
    private String itemInfo;

    @ApiModelProperty(value = "产品规格型号")
    @TableField("itemSpecification")
    private String itemSpecification;

    @ApiModelProperty(value = "时产能")
    @TableField("hourlyCapacity")
    private Integer hourlyCapacity;

    @ApiModelProperty(value = "交货日期")
    @TableField("deliveryDate")
    private String deliveryDate;

    @ApiModelProperty(value = "订单产品数量")
    @TableField("itemSize")
    private Integer itemSize;

    @ApiModelProperty(value = "每天工作时间")
    @TableField("workHours")
    private Integer workHours;

    @ApiModelProperty(value = "排班日期")
    @TableField("planDate")
    private String planDate;

    @ApiModelProperty(value = "排序第几天工作")
    private Integer sort;

    @ApiModelProperty(value = "0未到日期1到期并完成2到期未做")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
